package lab02.test04;
/**
 * Created by dell on 2017/10/14.
 */
public class Staff {
        //属性：员工姓名、员工号码、员工基本薪水、员工薪水增长额
        String staffName;
        String staffNo;
        float staffSalary;
        float staffIncrease;
        float staffSum;
        //方法：获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额
        String name(){
            return staffName;
        }
        String no (){
            return staffNo;
        }
        float salary(){
         return staffSalary;
    }
        float increase(){
            return staffIncrease;
        }
        float suum(){
            staffSum=staffSalary+staffIncrease;
            return staffSum;
        }
}
